<?php defined('SYSPATH') or die('No direct script access.');

class Controller_Details extends Controller {

	public function action_index()
	{


		$id = $this->request->param('id');
		$torrent = ORM::factory('torrent')
		->where('id', '=', $id)
		->find();


		$user = ORM::factory('user')
		->where('id', '=', Helper_User::get_logged())
		->find();
		
		$content = View::factory('template')
		->set('content',	View::factory('torrents/torrentdetails')
		->set('torrent',$torrent))
		->set('left',	View::factory('menus/usermenu')
		->set('user',$user));
		$this->response->body($content);
	}

} // End Details
